package model

type Classes struct {
	ID           int        `json:"classesId" gorm:"primary_key;AUTO_INCREMENT"`
	Name         string     `json:"name" gorm:"unique"`                         // 班级名称
	Desc         string     `json:"desc"`                                       // 班级描述
	DepartmentID int        `json:"departmentId"`                               // 系部id
	Department   Department `json:"department" gorm:"foreignKey:DepartmentID;"` // 系部
}
